#ifndef _GLOBALS_H_
#define _GLOBALS_H_

#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>

#ifndef FALSE
#define FALSE 0
#endif

#ifndef TRUE
#define TRUE 1
#endif // !TRUE

#define MAXRESERVED 6
#define MAXSTR 300
#define ALLTOKEN 27


typedef enum {
	IF, ELSE, INT, RETURN, VOID, WHILE,
	ENDFILE, ERROR,
	ID, NUM,
	PLUS, MINUS, TIMES, OVER, GT, LT, GTEQ, LTEQ, EQ, NEQ,
	ASSIGN, SMIT, COMMA, LKUO, RKUO, LINDEX, RINDEX, LDA, RDA,
	LCOMM, RCOMM
}tokentype;

extern FILE* source;
extern int lineno;
extern int EchoSource;


#endif // !_GLOBALS_H_
